import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyLoad from 'vue-lazyload'

import toast from 'components/common/toast'
import FastClick from 'fastclick'



Vue.config.productionTip = false
//添加事件总线
Vue.prototype.$bus = new Vue()
//安装toast插件
Vue.use(toast)
//解决移动端300毫秒的延迟问题
FastClick.attach(document.body)
//使用图片懒加载插件
Vue.use(VueLazyLoad, {
  preLoad: 1,
  //加载不出来的时候显示的图片
  // loading: require('assets/images/common/placeholder.png')
})

new Vue({
  render: h => h(App),
  router,
  store,
 
}).$mount('#app')
